<template>
	<page-meta>
		<navigation-bar :title="nbTitle" :subtitle-color="nbFrontColor" :loading="nbLoading" :front-color="nbFrontColor"
			:background-color="nbBackgroundColor" />
	</page-meta>
	<view>


		<view class="msg-title">
			{{this.banner.className}}
		</view>
		<view class="auther-time">
			<view style="margin-left: 125rpx;">
				发送人：<text style="color: black; font-size: 29rpx;">{{this.banner.remark}}</text>
			</view>
			<view>
				<text
					style="margin-right: 155rpx; font-size: 19rpx; color: slategray;">{{this.banner.createTime}}</text>
			</view>
		</view>
		<view class="tab">
			家庭作业请同学们按时、按质、按量完成、也请各位家长监督完成
		</view>
		<view class="article-meta">
			<view>
				<mp-html style="text-indent: 2em;font-size: 30rpx;" :content="this.banner.msgContent" />
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				nbTitle: '家庭作业',
				nbLoading: false,
				nbFrontColor: '#000000',
				nbBackgroundColor: '#fcc10d',
				banner: [],
			};
		},
		onLoad(option) {
			const item = JSON.parse(decodeURIComponent(option.item));
			this.banner = item;
		},
	}
</script>

<style lang="scss">
	page {
		background-color: #fff;
	}

	.msg-title {
		font-weight: bold;
		font-size: 38rpx;
		margin-bottom: 16rpx;
		display: flex;
		justify-content: center;
		margin-top: 35rpx;
		margin-bottom: 35rpx;
	}

	.auther-time {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 15rpx;
	}

	.tab {
		width: 650rpx;
		height: 100rpx;
		padding: 20rpx;
		border-radius: 10rpx;
		margin: 20rpx auto 20rpx;
		background-color: #dcdcdc;
		background-color: rgba(220, 220, 220, 0.5);
	}
</style>
